# 多继承
# 语法
# C 继承了 A, B
"""
class C(A, B):
    pass
"""


class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def talk(self):
        print(f'{self.name}说话')


class Pig:
    def call(self):
        print('会叫')


class LarrPage(Person, Pig):
    pass


larrpage1 = LarrPage('佩奇', 18)
larrpage1.talk()
larrpage1.call()



